package com.study.springsecurity.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("t_api_info")
public class ApiInfoEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("url_name")
    private String urlName;

    @TableField("url_path")
    private String urlPath;

    // 认证类型（permitAll-所有人可访问、anonymous-匿名用户访问、authenticated-登录用户即可访问、hasAnyRole-指定角色可访问）
    @TableField("auth_type")
    private String authType;
}
